home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / E / E_Examples / UserInput / Sources / NameExample.E < prev   
Encoding:
Text File  |  1997-02-26  |  391 b   |  13 lines

  1. /* Get A Persons Name And Display It On Screen
  2.          An Example On How To Read User Input From CLI By Edward Farrow   */
  3.  
  4. PROC main()
  5. DEF moo[256]:STRING                  /* Memory To Store Reply In */
  6.  
  7.    WriteF('What Is Your Name? ')     /* Say The Message */
  8.       ReadStr(stdout,moo)            /* Read The Reply  */
  9.    WriteF('Your Name Is \s\n',moo) /* Display Answer! */
  10.  
  11. ENDPROC
  12.  
  13.